package com.ruoyi.system.domain.dto;

import com.ruoyi.common.annotation.Excel;
import lombok.Data;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.Digits;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

/**
 * 提现记录对象 bdm_topup_record
 *
 * @author ruoyi
 * @date 2024-12-20
 */
@Data
public class BdmTopupRecordDto
{
    private Long id;
    /** 用户id */
    private Long sysUserid;

    /** 订单id */
    private String orderId;

    /** 状态 1申请中 2审核通过已打款 3驳回 */
    private String status;

    /** 提现金额 */
    @NotNull(message = "提现金额必填")
    @DecimalMin(value = "1", message = "提现金额需大于1元")
    @Digits(integer = 10, fraction = 0, message = "提现金额必须为整数")
    private BigDecimal topupAmount;

    /** 类型 1佣金提现 2余额提现 */
    private String type;

    private String way;
    private String name;
    private String accountNumber;
    private Integer mode;

    private List<Long>ids;

    /** 手续费 */
    @Excel(name = "手续费")
    private String commission;

    /** 应到金额 */
    @Excel(name = "应到金额")
    private String expectedAmount;

    /** 手续费比例 */
    @Excel(name = "手续费比例")
    private String commissionRate;
}
